package com.by.com.dao.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 分页结果
 * @param <T>
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "zpfPageResult分页查询结果")
public class PageResult<T> {
@ApiModelProperty(value = "z当前页数")
    int page;//当前页数
@ApiModelProperty(value = "z每页记录数")
    int pageSize;//每页记录数
@ApiModelProperty(value = "z总记录数")
    long total; //总记录数
@ApiModelProperty(value = "z查询结果")
    //分页查询结果
    List<T> data;
}
